<?php

ksort($options['valued']);

?>

 ***** [Syntax] ***************************************************************

   $ <?php echo $usage?>


 ***** [Available commands] ***************************************************

   use: :<command> , ':' is required

<?php foreach($options['commands'] as $name=>$desc) {
    if (false === is_array($desc)) {
        $desc = array($desc,array());
    }
?>
   :<?php echo sprintf("%-20s  %s",$name,$desc[0]) ?>

<?php foreach($desc[1] as $subOption=>$subDesc) {?>
         * <?php echo sprintf("%-10s\t%s",$subOption,$subDesc) ?>

<?php } ?>
<?php } ?>

 ***** [Available options] ****************************************************

   use: -<option> , no value (no '=...')

<?php foreach($options['flags'] as $name=>$desc) {
    if (false === is_array($desc)) {
        $desc = array($desc,array());
    }
?>
   -<?php echo sprintf("%-5s  %s",$name,$desc[0]) ?>

<?php } ?>

   use: --<option>=<value> , no default value, '=<value>' is required

<?php foreach($options['valued'] as $name=>$desc) {
    if (false === is_array($desc)) {
        $desc = array($desc,array());
    }
?>
   --<?php echo sprintf("%-10s  %s",$name,$desc[0]) ?>

<?php foreach($desc[1] as $subOption=>$subDesc) {?>
         * <?php echo sprintf("%-10s\t%s",$subOption,$subDesc) ?>

<?php } ?>
<?php } ?>

 ***** [Additional information] ***********************************************

   * additional options could be available dependending on the renderer
     template (i.e. phtml view file if used)

   * for schema / graph export in dot, png, jpg, ... you must have the
     graphviz binaries installed (dot binary)

 ***** [Software information] *************************************************

   @package_name@ v@package_version@, built on @package_date@
   Under @package_license@, Olivier Hoareau <olivier@phppro.fr> - PHPPRO

   @package_summary@
